<?php
/* @var $this CategoryController */
/* @var $data Category */
?>
<tr>
    <td class="text-center"><input type="checkbox" class="icheckbox_minimal-blue" name="selection[]" value="<?=$data['id']?>"></td>
    <td><?php echo CHtml::encode($data['id']); ?></td>
    <td><?php echo CHtml::encode($data['name']); ?></td>
    <td><?php echo CHtml::encode($data['alias']); ?></td>
    <td class="text-center"><?php echo CHtml::encode($data['sort']); ?></td>
    <td class="text-center"><?php echo CHtml::encode($data['template']); ?></td>
    <td class="text-center"><?php echo CHtml::encode($data['article_template']); ?></td>
    <td><span class="label <?php if($data['status']==1){echo'label-success';}else{echo'label-default';}?>"><?php echo Constants::getYesNoItems($data['status']); ?></span></td>
    <td><?php echo date('Y-m-d H:i',$data['created_at']); ?></td>
    <td><?php echo date('Y-m-d H:i',$data['updated_at']); ?></td>
    <td>
        <a href="<?=$this->createUrl('view',array('id'=>$data['id']))?>" title="查看" class="btn btn-xs btn-default"><i class="fa fa-eye"></i></a>
        <a href="<?=$this->createUrl('update',array('id'=>$data['id']))?>" title="编辑" class="btn btn-xs btn-info"><i class="fa fa-edit"></i></a>
        <a href="<?=$this->createUrl('delete',array('id'=>$data['id']))?>" title="删除" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>
    </td>
</tr>
